package cn.edu.hbpu.dto;

import cn.edu.hbpu.entity.User;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author lcy
 * @date 2022/8/5 20:54
 * @description 接收前端登录请求的dto
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
public class UserDto extends User {
    /**
     * 验证码key
     */
    @JsonProperty("codeKey")
    private String codeKey;

    /**
     * 验证码
     */
    @JsonProperty("code")
    private String code;

    /**
     * 确认密码
     */
    @JsonProperty("confirmPassword")
    private String confirmPassword;
}
